package org.itboys.mobile.dto.product;


import com.fasterxml.jackson.annotation.JsonIgnore;
import org.itboys.mobile.dto.lasted.SundayUploadDto;
import org.itboys.mobile.dto.SundayCommentDto;
import org.itboys.mobile.dto.common.MobileBaseDto;
import org.itboys.mobile.entity.mongo.SundayComment;
import org.itboys.mongodb.entity.BaseMySqlEntity;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 作者：jiangxiong
 * 日期：2017年5月8日
 * 联系方式 ：empty90911@126.com
 * 描述：圣代_商品_DTO(详情页)。
 */
public class SundayProductDto extends MobileBaseDto {
	
	//基础属性
	private String name;//商品名称
    private String viceName;//商品副标题
    private String number;//商品编号唯一
    private String standard;//商品规格
    private BigDecimal marketPrice;//市场价。仅作参考
    private BigDecimal price;//零售价（或积分价格）。
    private Integer type;//1商城商品，2积分商品
    private String image;//商品主图
    private Integer saleNumber;//销量
    List<SundayUploadDto> rollImages;//轮播图

    //mobile端专用字段
    private Integer isCollection;//是否收藏
    private String descUrl;//商品详情网页地址
    private List<Map<String,Object>> products;//推荐商品。2个
    private List<SundayCommentDto> comments;//评论。2条
    private String shareUrl;//分享地址
    private String shareImage;//分享图片
    private String shareTitle;//分享名称
    private String shareDesc;//分享描述

    public SundayProductDto() {

    }

    public SundayProductDto(long id, String createTime, String createDate,
                            String name, String viceName, String number, String standard, BigDecimal marketPrice, BigDecimal price,
                            Integer type, String image,
                            Integer saleNumber, List<SundayUploadDto> rollImages,
                            Integer isCollection, String descUrl) {
        super(id, createTime, createDate);
        this.name = name+standard;
        this.viceName = viceName;
        this.number = number;
        this.standard = standard;
        this.marketPrice = marketPrice;
        this.price = price;
        this.type = type;
        this.image = image;
        this.saleNumber = saleNumber;
        this.rollImages = rollImages;
        this.isCollection = isCollection;
        this.descUrl = descUrl;
        /*this.products = products;
        this.comments = comments;
        this.shareUrl = shareUrl;
        this.shareImage = shareImage;
        this.shareTitle = shareTitle;
        this.shareDesc = shareDesc;*/
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getViceName() {
        return viceName;
    }

    public void setViceName(String viceName) {
        this.viceName = viceName;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getStandard() {
        return standard;
    }

    public void setStandard(String standard) {
        this.standard = standard;
    }

    public BigDecimal getMarketPrice() {
        return marketPrice;
    }

    public void setMarketPrice(BigDecimal marketPrice) {
        this.marketPrice = marketPrice;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Integer getSaleNumber() {
        return saleNumber;
    }

    public void setSaleNumber(Integer saleNumber) {
        this.saleNumber = saleNumber;
    }

    public List<SundayUploadDto> getRollImages() {
        return rollImages;
    }

    public void setRollImages(List<SundayUploadDto> rollImages) {
        this.rollImages = rollImages;
    }

    public Integer getIsCollection() {
        return isCollection;
    }

    public void setIsCollection(Integer isCollection) {
        this.isCollection = isCollection;
    }

    public String getDescUrl() {
        return descUrl;
    }

    public void setDescUrl(String descUrl) {
        this.descUrl = descUrl;
    }

    public List<Map<String, Object>> getProducts() {
        return products;
    }

    public void setProducts(List<Map<String, Object>> products) {
        this.products = products;
    }

    public List<SundayCommentDto> getComments() {
        return comments;
    }

    public void setComments(List<SundayCommentDto> comments) {
        this.comments = comments;
    }

    public String getShareUrl() {
        return shareUrl;
    }

    public void setShareUrl(String shareUrl) {
        this.shareUrl = shareUrl;
    }

    public String getShareImage() {
        return shareImage;
    }

    public void setShareImage(String shareImage) {
        this.shareImage = shareImage;
    }

    public String getShareTitle() {
        return shareTitle;
    }

    public void setShareTitle(String shareTitle) {
        this.shareTitle = shareTitle;
    }

    public String getShareDesc() {
        return shareDesc;
    }

    public void setShareDesc(String shareDesc) {
        this.shareDesc = shareDesc;
    }
}
